package smsapi.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import smsapi.auth.CheckAuth;
import smsapi.model.*;

@RestController
@RequestMapping("callback")
public class CallBackController {

    @CheckAuth(check = false)
    @GetMapping(path = "test")
    public String test() {
        return "OK";
    }
    @PostMapping(path = "submitres")
    public SendResponse onSend(PushSubmitResRequest request)
    {
        return new SendResponse().apiStatus("200");
    }
    @PostMapping(path = "smsreport")
    public SendResponse onSmsReport(PushSmsReportRequest request)
    {
        return new SendResponse().apiStatus("200");
    }
    @PostMapping(path = "deliver")
    public SendResponse onDeliver(PushDeliverRequest request)
    {
        return new SendResponse().apiStatus("200");
    }
}
